package org.xutils.xutillearn.presenter.presenterImpl;

import org.xutils.xutillearn.model.RecyclerAcModel;
import org.xutils.xutillearn.model.modelImpl.RecyclerAcModelImpl;
import org.xutils.xutillearn.presenter.RecyclerAcPresenter;
import org.xutils.xutillearn.ui.iview.IRecyclerAcView;

import java.util.List;

/**
 * Created by yangmy on 2016/4/14.
 */
public class RecyclerAcPresenterImpl implements RecyclerAcPresenter{

    IRecyclerAcView iview;
    RecyclerAcModel recyclerAcModel;
    public RecyclerAcPresenterImpl(IRecyclerAcView iview){
        this.iview = iview;
        this.recyclerAcModel = new RecyclerAcModelImpl();
    }


    @Override
    public void showLinelayoutList() {
        List<String> list = recyclerAcModel.getStringList();
        iview.showLinelayoutList(list);
    }

    @Override
    public void showGridLayoutList() {
        List<String> list = recyclerAcModel.getStringList();
        iview.showGridLayoutList(list);
    }

}
